home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TUTOR.ZIP
/
DEMO1.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-01-25
|
1KB
|
20 lines
mov ax,3 ;reset video to text mode
int 10h ;= clear the screen (CLS)
mov es,0b800h ;set es to text video segment
mov si,message ;message to display
mov di,1760 ;display at line 11 on video
mov ah,7 ;medium white color
nex1: mov al,[si] ;byte from code seg message
inc si ;message +1
cmp al,0 ;end of message ?
jz done ;if so, jump to done
mov es:[di],ax ;move byte+color to video
add di,2 ;next video word address
jmp nex1 ;do next video
done: mov ah,0 ;wait for any key pressed
int 16h ;keyboard interrupt
mov ax,4c00h ;interrupt 21h exit instruct.
int 21h ;return to DOS> ready prompt
message:
db 'Captain Russell is now in command of the Starship Enterprise.',0